class BMI:
    def __init__(self,xingming,nianling,tizhong,shenggao):
        self.xingming = xingming
        self.nianling = nianling
        self.tizhong = tizhong 
        self.shenggao = shenggao
        self.bmi = tizhong/(shenggao*shenggao)
        s  = self.bmi
        if s < 18.5:
            m = "偏瘦"
        elif 18.5 < s <24:
            m = "正常"
        elif s>24:
            m = "偏胖"
        self.jiankang = m
            
            
            
            

    def get_BMI(self):
        print("{xingming}的bmi指数是{s},他的健康情况是{m}".format(xingming=self.xingming,s=self.bmi,m=self.jiankang))
    def get_nianling(self):
        print("{xingming}的年龄是{nianlling}".format(xingming=self.xingming,nianling=self.nianling))
    def get_tizhong(self):
        print("{xingming}的体重是{tizhong}".format(xingming=self.xingming,tizhong=self.tizong))
        
    def get_shenggao(self):
        print("{xingming}的身高是{shenggao}".format(xingming=self.xingming,shenggao=self.shenggao))